package com.hao.crm.mapper;

import com.hao.crm.domain.Role;
import com.hao.crm.query.QueryObject;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

	Long queryByConditionCount(QueryObject qo);

	List<Role> queryByCondition(QueryObject qo);

	void handlerRelation(@Param("rId")Long rId, @Param("pId")Long pId);

	void deleteByRid(Long id);

	List<Long> selectByEid(Long id);
}